
package com.tonyodev.fetch2fileserver.database;

import java.util.List;

public interface FileResourceInfoDao {

    long insert(FileResourceInfo fileResourceInfo);

    List<Long> insert(List<FileResourceInfo> fileResourceInfoList);

    void delete(FileResourceInfo fileResourceInfo);

    void delete(List<FileResourceInfo> fileResourceInfoList);

    void deleteAll();

    List<FileResourceInfo> get();

    FileResourceInfo get(long id);

    FileResourceInfo get(String fileName);

    List<FileResourceInfo> get(List<Long> ids);

    List<FileResourceInfo> getPage(int count, int offset);
}
